<%--
  Created by IntelliJ IDEA.
  User: box
  Date: 2021/08/29
  Time: 22:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="../js/jquery2.1.4.js"></script>
    <script src="../layer/layer.js"></script>
    <script>
        function msgTest(){
            // layer.msg("提示的文字");
            layer.msg("提示的文字",function () {
                //窗口关闭时执行
            });
        }
        function loadTest(){
            //返回弹出层的id
            let windID = layer.load(0);//0-16
            //通过窗口的id，关闭窗口
            setTimeout(function () {
                layer.close(windID);
            },2000)
        }
        function msg_loadTest() {
            layer.msg("提示的文字",{icon:16,shade:0.01});

        }
        function alertTest() {
            layer.alert("文字的内容",{icon: 10});
        }
        function tipsTest() {
            layer.tips("这里有密码","#b1",{tipsMore:true,tips:2});
        }
    </script>
</head>
<body>
<button onclick="msgTest()">msg函数*</button><br>
<button onclick="loadTest()">load函数*</button><br>
<button onclick="msg_loadTest()">msg函数(load效果)</button><br>
<button onclick="alertTest()">alert函数</button><br>
<button onclick="tipsTest()" id="b1">tips函数</button><br>
<p>
    赛事就<span id="s1">党务</span>,为其五九二
</p>
</body>
</html>
